powered by
Given a set of polygons, returns the area of each polygon.
poly.areas(polys)
A list of areas of the same length as the number of polygons in polys.
polys
A SpatialPolygons or SpatialPolygonsDataFrame or sf -POLYGON or - MULTIPOLYGON object.
SpatialPolygons
SpatialPolygonsDataFrame
sf
Chris Brunsdon, Binbin Lu
# Data for New Haven to use in example data(newhaven) # What is the area each census block? poly.areas(blocks)
Run the code above in your browser using DataLab